package com.mc.linklist;

/***
 * @ClassName test
 * @Description todo
 * @Author CC
 * @Date: 2019/10/2818:43
 * @Version 1.0
 */
public class test {
    public static void main(String[] args) {
        MyLinkedList mll=new MyLinkedList();
        mll.add(1);
        mll.add("2");
        mll.add(1.0);
        mll.add(789);
        mll.add(Math.random()*10);
        System.out.println("长度是:"+mll.size());
        System.out.println("首元素"+mll.getFirst());
        System.out.println("末元素"+mll.getLast());
        mll.remove(1);
        System.out.println("删除后长度"+mll.size());
        mll.addFirst("付萌朝");
        mll.addLast("chen");
        System.out.println("end");

    }
}
